<?php

Class Paylog extends Connect{
    
    function log($user, $voices, $currency, $count){
        $sql = "INSERT INTO `".PREFIX_TABLE."paylog` (`user`, `voices`, `currency`, `count`, `date`)
                VALUES ('".$user."', 
                '".$voices."', 
                '".$currency."', 
                '".$count."', 
                '".DBConnect::mysqlDate()."')";
        if(!DBConnect::query($sql)){
            $this->_error(mysql_error());
            return false;
        }
        return true;
    }
}
?>